﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace WallpaperControl
{
    public partial class MainForm : Form
    {
        Interface Interface = new Interface();
        
        public MainForm()
        {
            InitializeComponent();
            Program.ControlPanelActive = true;
            Program.LoadImageListFile();
            Program.LoadConditionTypeFile();
            Program.LoadConditionFile();
            buttonAdd.Click += new EventHandler(Interface.buttonAdd_Click);
            buttonDelete.Click += new EventHandler(Interface.buttonDelete_Click);
            buttonCancel.Click += new EventHandler(Interface.buttonCancel_Click);
            buttonCondition.Click += new EventHandler(Interface.buttonCondition_Click);
            buttonShowNow.Click += new EventHandler(Interface.buttonShowNow_Click);
            buttonOK.Click += new EventHandler(Interface.buttonOK_Click);
            buttonUp.Click += new EventHandler(Interface.buttonUp_Click);
            buttonDown.Click += new EventHandler(Interface.buttonDown_Click);
            buttonPreview.Click += new System.EventHandler(Interface.buttonPreview_Click);
            listBoxImages.SelectedIndexChanged += new EventHandler(Interface.listBoxImages_SelectedIndexChanged);
            Program.CheckStartMode();
        }
    }
}
